package com.example.train_operate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName tb_electric
 */
@TableName(value ="tb_electric")
@Data
public class Electric implements Serializable {
    /**
     * 电源设备检修id
     */
    @TableId(type = IdType.AUTO)
    private Integer electricId;

    /**
     * 电源端子排设备电源插头是否插接良好
     */
    private Integer electricPlug;

    /**
     * 测量电源电压值是否正常
     */
    private Integer voltageValue;

    /**
     * 查看工作是否正常有无过热现象
     */
    private Integer overheatingPhenomenon;

    /**
     * 检查电源风扇并除尘
     */
    private Integer electricFan;

    /**
     * 完成电源设备检修时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 修改该任务时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 前一个任务id
     */
    private Integer previousTaskId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 照片url
     */
    private String photoUrl;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 任务类型
     */
    private Integer taskType;

    /**
     * 前一个任务类型
     */
    private Integer previousTaskType;


    /**
     * 正常个数
     */
    @TableField(exist = false)
    private Integer electricNormalNum;

    /**
     * 异常个数
     */
    @TableField(exist = false)
    private Integer electricExceptionNum;

    /**
     * 是否正常
     */
    @TableField(exist = false)
    private Integer electricIsNormal;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}